package com.kkb.dao;

import com.kkb.pojo.Book;
import org.springframework.stereotype.Repository;

@Repository("bookDao")
public class BookDao {


    public BookDao() {
        System.out.println("BookDao默认构造方法------------");
    }

    public void add(){

        System.out.println("BookDao------Add--------");
        Book book = new Book();
        System.out.println(book);
    }

    public Book add(int id,String name){

        return new Book(id,name);

    }
}
